﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EvaluationSystem.Exceptions
{
    public class ConnectionStringEmptyException : Exception
    {
        public ConnectionStringEmptyException():base("Invalid Connection String.")
        { 
        }
    }

    public class RoleException : Exception
    {
        public RoleException()
            : base("角色异常.")
        { 
        }
    }

    public class GroupsException : Exception
    {
        public GroupsException()
            : base("组异常.")
        { 
        }
    }

    public class InvalidUserException : Exception
    {
        public InvalidUserException()
            : base("无效的用户名.")
        { 
        }
    }

    public class UserIdNullException : Exception
    {
        public UserIdNullException() : base("用户Id为空.") { }
    }

    public class NoGroupInformationException : Exception
    {
        public NoGroupInformationException() : base("组不存在.") { }
    }

    public class ExistTabException : Exception
    {
        public ExistTabException() : base("页签已经存在.") { }
    }

    public class ExistSummaryException : Exception
    {
        public ExistSummaryException() : base("评分指标项已经存在.") { }
    }

    public class ExistEvaluationException : Exception
    {
        public ExistEvaluationException() : base("评分指标内容已经存在.") { }
    }
}